home *** CD-ROM | disk | FTP | other *** search
/ Chip: Net Guide / CHIP NET Rehberi Eylül 1998.iso / tools / is30eval / IS30AENG / ISHARE.2 / WIN31 / UNINSTAL / WSSW16.BAT < prev   
Encoding:
DOS Batch File  |  1998-05-19  |  1.2 KB  |  58 lines

  1. @echo off
  2.  
  3. set COPYCMD=/Y 
  4.  
  5. set INSEXT=001
  6. set LIGEXT=_IS
  7. set ORGEXT=ORG
  8. set BAKEXT=BAK
  9.  
  10. set WINDOWSDIR=C:\WINDOWS
  11. if NOT .%windir%. == .. set WINDOWSDIR=%windir%
  12.  
  13. if EXIST %WINDOWSDIR%\winsock.%ORGEXT% goto save_org_done
  14. copy %WINDOWSDIR%\winsock.%INSEXT% %WINDOWSDIR%\winsock.%ORGEXT% > nul
  15.  
  16. :save_org_done
  17.  
  18. if .%1. == .ISHARE. goto ishare_switch
  19. if .%1. == .iShare. goto ishare_switch
  20. if .%1. == .ishare. goto ishare_switch
  21. if .%1. == .LIG. goto ishare_switch
  22. if .%1. == .lig. goto ishare_switch
  23. if .%1. == .ORIG. goto orig_switch
  24. if .%1. == .orig. goto orig_switch
  25. if .%1. == .ORG. goto orig_switch
  26. if .%1. == .org. goto orig_switch
  27.  
  28. echo.
  29. echo Usage:    WSSW16 ISHARE  --  Artisoft i.Share WinSock
  30. echo  -or-     WSSW16 ORIG    --  Original WinSock
  31. echo.
  32. goto all_done
  33.  
  34. :ishare_switch
  35. copy %WINDOWSDIR%\winsock.DLL %WINDOWSDIR%\winsock.%BAKEXT% > nul
  36.  
  37. :copy_LIG_to_DLL
  38. copy %WINDOWSDIR%\winsock.%LIGEXT% %WINDOWSDIR%\winsock.DLL > nul
  39.  
  40. goto all_done
  41.  
  42. :orig_switch
  43. copy %WINDOWSDIR%\winsock.DLL %WINDOWSDIR%\winsock.%BAKEXT% > nul
  44.  
  45. :copy_ORG_to_DLL
  46. copy %WINDOWSDIR%\winsock.%ORGEXT% %WINDOWSDIR%\winsock.DLL > nul
  47.  
  48. :all_done
  49.  
  50. set INSEXT=
  51. set LIGEXT=
  52. set ORGEXT=
  53. set BAKEXT=
  54. set WINDOWSDIR=
  55.  
  56. set COPYCMD=
  57.  
  58.